package org.example.judge_admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.judge_common.entity.PageResult;
import org.example.judge_common.entity.RequestUserParams;
import org.example.judge_pojo.User;

public interface UserService extends IService<User> {
    PageResult<User> search(RequestUserParams params);

    /**
     * 指定用户添加rating
     * @param userId
     * @param rating
     * @return
     */
    boolean addRating(String userId, Integer rating);

    User selectByEmail(String email);


    User getUsernameOne(String username);

    Integer getUserRatingRank(String id);
}
